ROOT_PATH := $(call my-dir)

########################################################################################################

include $(CLEAR_VARS)

MYGUI_SRC_PATH	 := mygui/src/
RENDER_SRC_PATH	 := render/src/
COMMON_SRC_PATH	 := common/src/
LOCAL_MODULE     := libeasygui
LOCAL_PATH       := $(ROOT_PATH)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../easy2d $(LOCAL_PATH)/../deps/freetype/include $(LOCAL_PATH)/mygui/include $(LOCAL_PATH)/render/include $(LOCAL_PATH)/common/include
LOCAL_SRC_FILES  := $(MYGUI_SRC_PATH)/MyGUI_ActionController.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Any.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_BackwardCompatibility.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_BiIndexBase.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Button.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Canvas.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ChildSkinInfo.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ClipboardManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Colour.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ComboBox.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ConsoleLogListener.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Constants.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ControllerEdgeHide.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ControllerFadeAlpha.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ControllerManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ControllerPosition.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_DataFileStream.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_DataManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_DataStream.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_DDContainer.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_DynLib.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_DynLibManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_EditBox.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_EditText.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Exception.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_FactoryManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_FileLogListener.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_FontManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_GeometryUtility.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Gui.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ImageBox.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_InputManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ItemBox.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LanguageManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LayerItem.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LayerManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LayerNode.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LayoutManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LevelLogFilter.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ListBox.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LogManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_LogSource.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_MainSkin.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_MaskPickInfo.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_MenuBar.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_MenuControl.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_MenuItem.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_MultiListBox.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_MultiListItem.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_OverlappedLayer.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_PluginManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_PointerManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_PolygonalSkin.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_PopupMenu.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Precompiled.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ProgressBar.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_RenderItem.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_RenderManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceImageSet.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceImageSetPointer.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceLayout.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceManualFont.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceManualPointer.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceSkin.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceTrueTypeFont.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ResourceMobileFont.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_RotatingSkin.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ScrollBar.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ScrollView.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ScrollViewBase.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SharedLayer.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SharedLayerNode.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SimpleText.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SkinItem.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SkinManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SubSkin.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SubWidgetBinding.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_SubWidgetManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_TabControl.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_TabItem.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_TextBox.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_TextIterator.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_TextureUtility.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_TextView.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_TileRect.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Timer.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_ToolTipManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_UString.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Widget.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_WidgetInput.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_WidgetManager.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_WidgetUserData.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_Window.cpp    \
			$(MYGUI_SRC_PATH)/MyGUI_XmlDocument.cpp    \
			$(RENDER_SRC_PATH)/MyGUI_OpenGLDataManager.cpp    \
			$(RENDER_SRC_PATH)/MyGUI_OpenGLPlatform.cpp    \
			$(RENDER_SRC_PATH)/MyGUI_OpenGLRenderManager.cpp    \
			$(RENDER_SRC_PATH)/MyGUI_OpenGLRTTexture.cpp    \
			$(RENDER_SRC_PATH)/MyGUI_OpenGLTexture.cpp    \
			$(RENDER_SRC_PATH)/MyGUI_OpenGLVertexBuffer.cpp    \
			$(COMMON_SRC_PATH)/MemDataStream.cpp    \
			$(COMMON_SRC_PATH)/BaseManager.cpp    \
			$(COMMON_SRC_PATH)/InputManager.cpp    \
			$(COMMON_SRC_PATH)/Precompiled.cpp    \

LOCAL_CFLAGS     := -DMYGUI_USE_FREETYPE -DMYGUI_STATIC
LOCAL_LDLIBS     := -llog


#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_STATIC_LIBRARY)

########################################################################################################
